package com.youngwang.lambda.infa;

/**
 * @author youngwang
 *         Date: 2016/10/13
 */
@FunctionalInterface
public interface Formula {

    double calculate(int number);

    default double sqrt(int number){
        return Math.sqrt(number);
    }

    static double pow(double number){
        return Math.pow(number, 2);
    }
}
